package com.linkhub.oms.admin.modules.pickuporder.domain.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @Description: EntryOrderLineParam
 * @Author: echo
 * @Date: 2024/5/2 11:14
 * @Version: 1.0
 */
@Data
@ApiModel(value = "EntryOrderLineParam", description = "提货单商品信息")
public class EntryOrderLineParam implements Serializable {

    @ApiModelProperty(value = "本地商品skuId")
    @NotBlank(message = "{validation.order.localSkuId.notBlank}")
    private String skuId;

    @ApiModelProperty("sku")
    @NotBlank(message = "{validation.pickup.orderLineParams.sku.notBlank}")
    private String sku;

    @ApiModelProperty(value = "数量")
    @NotBlank(message = "{validation.order.currentQuantity.notNull}")
    @Range(min = 1, message = "{validation.order.currentQuantity.range}")
    private Integer skuQuantity;
}
